Someone asked how many violations there were in the entire star trek series. So far I've watched 38 season of Star Trek. That's all of Deep Space 9, Lower Decks, Voyager, Prodigy, The Next Generation, the Original Series, Enterprise, all the films besides Section 31, and the first two seasons of Discovery.
First I'm going to try to explain the Prime Directive. The rule is the Federation cannot interfere with non-federation races. The first part is the Federation cannot get involved in developing species that haven't created warp technology or discovered any alien races, Federation officers need to keep their very existence a secret from the aliens. Violating this can jeopardize the development of the species and culture and is known as Cultural Contamination.
The second part is more complicated as it mainly focuses on post-warp civilizations and requires the Federation refraining from the uninvited manipulating of the internal affairs of any non-federation group, assisting one non-federation faction over the other in open conflicts or partisan aid of legitimate non-federation groups. The Federation is to respect the sovereignty/diplomatic rights of foreign factions regardless of their technical development and to not fundamentally alter the nature of non-federation groups.
I did the first four seasons of Lower Decks here and the final season here. I counted 11 Prime Directive violations.
I did Deep Space 9 here and here. I counted 14 Prime Directive Violations.
I did the start of Voyager here, middle of Voyager here, and the end of Voyager here I counted 32 Prime Directive Violations.
I did Prodigy here. I counted 2 Prime Directive Violations.
I did the start of The Next Generation here. I did the middle of The Next Generation here. I did the end of The Next Generation here. I counted 20 Prime Directive Violations.
I did the first season of the Original Series here. I did the second season of the Original Serieshere I did the final season of the Original Series here. I counted 21 Prime Directive Violations.
Enterprise is 0 Prime Directive Violations because it takes place before the Prime Directive existed in the series.
I did all the movies from the Motion Picture to Beyond here. I counted 5 Prime Directive violations.
I did the first season of Discovery here. I counted 4 Prime Directive Violations, but in Discovery the Prime Directive was called 'General Order 1'
For this post I'm going to list the violations in the second season of Discovery and make a reference of any noteworthy incidents that are worth mentioning.
Some notes: Captain Pike is the acting captain of Discovery because he's on a mission to investigate red lights appearing over the galaxy and his mission takes priority over General Order One (for some reason).
Section 31 in this time period is a fully recognized department of StarFleet's intelligence agency. Captain Pike recognizes the organization as StarFleet as does Admiral Cornwell. In addition to that at least 3 admirals supervise the intelligence agency. So Section 31's agents are subject to obeying the Prime Directive.
Episode 2) No violation. Captain Pike takes the crew of the Discovery to investigate a bright light over the planet, Terralysium. A world inhabited by humans whose ancestors originally were the target of a nuclear bombing during World War 3 before the development of Earth's warp drive. Captain Pike speculates since the inhabitants don't currently possess a warp capable ship and the entity that transported the population is recognized as an angel then the Prime Directive or General Order 1 is in effect. Captain Pike took an away team of himself, Commander Michael Burnham, Lieutenant Joann Owosekun to the settlement, New Eden. On the planet a native of the planet, Jacob deduced they were from a warp capable Earth, stole the the away team's post-warp technology to show to the general population, the away team recovered their technology from him and teleported back to USS Discovery in full view of the population after a native inadvertently shot Captain Pike with a phaser. The USS Discovery also used a super dense meteor containing dark matter to save the planet's population from ionizing radiation in the atmosphere that threatened to kill the population. Captain Pike would then later return to Jacob to confirm he was from a warp capable Earth and traded Jacob a long lasting advanced battery for a recording for the a recording of the day the entity saved the population during WW3. This would have been about 3 Genarl Order 1 violations, but humans are not protected by the General Order 1.
E3) General Order 1 Violation. Ash Tyler, the human StarFleet officer combined with the Klingon Voq of the House of T'Kuvma formally resigned from StarFleet to serve under the Klingon chancellor, L'Rell. Kol-Sha abducted the unnamed child of Voq and L'Rell to hold hostage for L'Rell's position as chancellor. During a violent encounter between L'Rell and Ash against Kol-Sha's forces, Section 31 agent and former terran emperor, Philippa Georgiou intervened in the fight to save L'Rell and Ash from being killed. Philippa then assisted in faking the death of Ash and his son to help solidify L'Rell's rule over the Klingons. Ensign Sylvia Tilly suffers from auditory and visual hallucinations of the deceased May Ahearn, upon farther investigation it is determined May is actually a parasitic fungus known as a JahSepp in Tilly's head and with the help of Astromycologist, Paul Stamets is removed and detained.
E 4) No violation. The USS Discovery is pulled out of warp by a massive sphere entity that is passing on its millennia of knowledge as it is dying. The encounter with the sphere causes Commander Saru experiences his Vahar'ai (the end period of a Kelpien's life where their threat ganglia to the point the Kelpien will expire or suffer permanent intense distress until they go insane). Saru manages to survive the experience as his knowledge of the Vahar'ai is apparently false and a lie the ruling species of his planet, the Ba'ul propagated to justify the culling of the Kelpiens. During Saru's Vahar'ai he mentions his logs would dispute the Kelpien species being subject to General Order 1. Apparently the Kelpiens are erroneously classified as a pre-warp species. The JahSepp creature informs the crew of Discovery the crew have been harming its home when they enter via the spore drive before it teleports Ensign Tilly via an fungal based multidimensional teleporter. If this is true I would need to count every spore drive jump as a Prime Directive Violation.
E5) General Order One Violation. It is revealed the actual cause of the damage to the region of the Mycelial Network where the JahSepp call home is actually Doctor Hugh Culber of the USS Discovery and the husband of Paul Stamets who was somehow transported to the network at some point in the first season after Hugh Culber was killed by Ash Tyler. Doctor Culber used hazardous materials in the network to fight off the JahSepp attempting to deconstruct invasive materials to the network as the JahSepp function as the immune system to the network. The crew manage to return Doctor Culber to Discovery instead of destroying him as the JahSepp impersonating May demanded after negotiating with her to reconsider. The USS Discovery also makes contact with the Section 31 and Ash Tyler has joined Section 31 as a specialist agent.
E6) 2 General Order 1 Violations. (This is gonna be a doozy of a challenge explaining this). The USS Discovery travels to investigate a red light over the Kaminar planet, the home of the Kelpien and Ba'ul species. The Ba'ul refuse to answer any hails from Captain Pike. It is revealed the Ba'ul are the ruling species who developed warp technology to rule the Kelpiens as the Kelpeins remained pre-warp despite being exposed to Ba'ul technology. Commander Saru had been the only member of either species to send a subspace message out into space. This generally seems to dispute the idea that the Kelpiens are pre-warp. As Saru and thus other Kelpeins are able to to send subspace messages into space. Lieutenant Philippa Georgiou would then respond to Saru's message and grant him political asylum. Unfortunately StarFleet officers can't give someone asylum outside of the Federation's sovereign ground and all Kelpeins are legally under the custody of the Ba'ul via the Ba'ul ecological preservation system known as the Great Balance. Upon Saru's return to his village during an away mission with Commander Michael Burnham, the Ba'ul monitoring systems detect his return and are able to figure out he had managed to escape thanks to StarFleet interference. Captain Pike had mentioned thanks to General Order One the fact the Vahar'ai was not a death sentence was considered a secret Saru could not reveal to his people. The Ba'ul sent forces to retrive Saru and Saru surrendered himself after his sister, Siranna from his village was in peril. As Saru had relinquished his asylum status and position as a StarFleet officer, Saru was no longer obligated to keep the Vahar'ai a secret and he proceeded to tell his sister the truth. It was then determined the Ba'ul had nearly been hunted to extinction as they were in fact to prey of the Kelpiens who had underwent the Vahar'ai since the process of Vahar'ai resulted in the danger sensing ganglia falling off and teeth based projectiles replacing them. Captain Pike would then use the sphere's data that caused Saru to undergo his Vahar'ai to force the entire Kelpiens to all collectively undergo the Vahar'ai at once. This nearly resulted in the Ba'ul attempting to mass exterminate the entire population of Kelpiens before the angel that is apparently a time traveler intervened.
E7-E8) No violation of General Order 1, but Commander Michael Burnham did violate General Order 7 by taking her brother Lieutenant Spock to Talos IV to seek mental help aid after an encounter with the angel caused him to go insane.
E9-E14) No violation. There is an evil AI known as Control created by Section 31 attempted to wipe out all sentient life by using the data the sphere sent to the USS Discovery. Commander Michael Burnham's mother, Gabrielle Burnham had used a time travel suit to prevent the destruction of sentient life under the guise as the Red Angel. Commander Michael Burnham would use a copy of the time travel suit to open a portal to the future for Discovery to travel to since the data on the sphere couldn't be destroyed and sending it outside the reach of Control would save all sentient life. Following the success of the trip, the USS Discovery was deemed classified and any mention of the crew, ship, or spore drive was deemed treason. Also Section 31 specialist, Ash Tyler would take over Section 31 and Agent Philippa Georgiou would go onto commit treason by informing Captain Pike of being from the Mirror Universe despite the fact Admiral Katrina Cornwell had deemed the Mirror Universe as being top secret and any mention of it would from a StarFleet Officer would be treason.
That's 4 General Order 1 violations or 4 Prime Directive Violations in the second season of Discovery.